﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//Importamos
using EventSys.BussinesEntities;
using EventSys.Repository;
using Microsoft.Practices.Unity;

namespace EventSys.BussinesLogic
{
    public class UbigeoService:IUbigeoService
    {
        [Dependency]
        public IUbigeoRepository ubigeoRepository { get; set; }

        public List<Ubigeo> listarPaises(string idPais)
        {
            return ubigeoRepository.listarPaises(idPais);
        }

        public List<Ubigeo> ListProvinciaByDepartamento(string idDepartamento)
        {
            return ubigeoRepository.ListProvinciaByDepartamento(idDepartamento);
        }

        public List<Ubigeo> ListDepartamentoByPais(string idPais)
        {
            return ubigeoRepository.ListDepartamentoByPais(idPais);
        }

        public List<Ubigeo> ListHijosByIdUbigeoR(string idUbigeoR)
        {
            return ubigeoRepository.ListHijosByIdUbigeoR(idUbigeoR);
        }


    }
}
